﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Container.aspx.cs" Inherits="TireService.Mobile.Container" %>


<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h1>Lager</h1>
    Søg efter hjulsæt
    <table border="0" cellpadding="3" cellspacing="3" width="100%">
        <tr>
            <td valign="top" style="width:120px">
                <dx:ASPxRadioButtonList ID="rbSearchFilter" runat="server" Height="85px" Width="120px">
                    <Items>
                        <dx:ListEditItem Text="Reg.nr." Value="1" Selected="true" />
                        <dx:ListEditItem Text="Kundenr" Value="0" />
                    </Items>
                </dx:ASPxRadioButtonList>
            </td>
            <td valign="top" style="width:100%">
                <dx:ASPxButton ID="btnSearchTireSet" runat="server" Text="Søg" Width="100%" 
                    Height="85px" onclick="btnSearchTireSet_Click">
                </dx:ASPxButton>
            </td>
        </tr>
        <tr>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td colspan="2">
                <dx:ASPxTextBox ID="txtSearchString" NullText="Indtast søgning" runat="server" 
                    Width="100%" Height="50px">
                </dx:ASPxTextBox>    
            </td>
        </tr>
    </table>
    <hr />
    <asp:Panel ID="pTireSet" runat="server" Visible="false">
        <b>Kundedata</b><br />
        <asp:Label ID="lblName" runat="server" Text=""></asp:Label><br />
        <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label>, <asp:Label ID="lblZipCode" runat="server" Text=""></asp:Label> <asp:Label ID="lblCity" runat="server" Text=""></asp:Label><br />
        <asp:Label ID="lblAddress2" runat="server" Text=""></asp:Label>, <asp:Label ID="lblZipCode2" runat="server" Text=""></asp:Label> <asp:Label ID="lblCity2" runat="server" Text=""></asp:Label><br />
        Telefon: <asp:Label ID="lblPhone1" runat="server" Text=""></asp:Label> - <asp:Label ID="lblPhone2" runat="server" Text=""></asp:Label><br />
        Email: <asp:Label ID="lblEmail" runat="server" Text=""></asp:Label><br />
        <dx:ASPxGridView ID="gvTireSets" runat="server" ClientInstanceName="gvTireSets" Caption="Hjulsæt" 
            KeyFieldName="TireSetId" Width="100%" AutoGenerateColumns="False" EnableCallBacks="True">
            <SettingsLoadingPanel Text="Henter&amp;hellip;" />
            <Settings ShowHeaderFilterButton="false" ShowGroupPanel="false" ShowFilterRow="false" ShowPreview="true" />
            <SettingsPager AlwaysShowPager="false" PageSize="25" Position="TopAndBottom">
                <Summary 
                    AllPagesText="Sider: {0} - {1} ({2} hjulsæt)" 
                    Text="Side {0} af {1} ({2} hjulsæt)" />
            </SettingsPager>
            <SettingsBehavior ConfirmDelete="True" AllowGroup="false" AllowDragDrop="false" />
            <Templates>
                <PreviewRow>
                    <b><asp:Label ID="lblTireTypeDescription" runat="server" Text='<%# Eval("TireTypeDescription") %>'></asp:Label></b><br />
                    Bil: <asp:Label ID="lblCarBrandDescription" runat="server" Text='<%# Eval("CarBrandDescription") %>'></asp:Label><asp:Label ID="lblModel" runat="server" Text='<%# Eval("Model") %>'></asp:Label><br />
                    Status: <asp:Label ID="lblTireSetStatusDescription" runat="server" Text='<%# Eval("TireSetStatusDescription") %>'></asp:Label><br />
                    Lager: <asp:Label ID="lblContainerNumber" runat="server" Text='<%# Eval("ContainerNumber") %>'></asp:Label><br />
                    Plads: <asp:Label ID="lblCargoRoomNumber" runat="server" Text='<%# Eval("CargoRoomNumber") %>'></asp:Label><br />
                    <asp:Label ID="lblTireBrandDescription" runat="server" Text='<%# Eval("TireBrandDescription") %>'></asp:Label><br />
                    <asp:Label ID="lblWidth" runat="server" Text='<%# Eval("Width") %>'></asp:Label> / <asp:Label ID="lblHeight" runat="server" Text='<%# Eval("Height") %>'></asp:Label> / <asp:Label ID="lblSize" runat="server" Text='<%# Eval("Size") %>'></asp:Label><br />
                    <hr />
                </PreviewRow>
            </Templates>
        </dx:ASPxGridView>

    </asp:Panel>
</asp:Content>
